// webpack.config.js
const AutoImport = require('unplugin-auto-import/webpack')
const Components = require('unplugin-vue-components/webpack')
const { ElementPlusResolver } = require('unplugin-vue-components/resolvers')

module.exports = {
  // configureWebpack: {
  //   plugins: [
  //     AutoImport({
  //       resolvers: [ElementPlusResolver()],
  //     }),
  //     Components({
  //       resolvers: [ElementPlusResolver()],
  //     }),
  //   ],
  // },
  devServer: {
    //内网穿透
    // historyApiFallback: true,
    // allowedHosts: "all",
    // host: 'localhost',//对应的主机名
    // host:"http://xxyf.fgimaxl2.vipnps.vip/",
    // https: false,//是否开启协议名,如果开启会发出警告
    port: 6379 ,// 此处修改你想要的端口号
    proxy:{
      "/xxyf": {
        target:"http://127.0.0.1:8081",
        // target:"http://xxyf.free.svipss.top/mvc1/",
        ChangeOrigin:true,
        pathRewrite:{"^/xxyf":''
        }
      }
    }

  },
  lintOnSave:false //关闭语法检查
  ,
  //打包
  //指定静态资源包
  // assetsDir: 'static',
  //   publicPath: '/mvc1/vue',
}